package com.hk.commons.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 交易流水
 * @author jeff
 *
 */

@Entity
@Table(name = "t_trade_info")
public class Trade implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6715840786766485069L;

	@Id
	@GeneratedValue (generator =  "paymentableGenerator" )    
    @GenericGenerator (name =  "paymentableGenerator" , strategy =  "increment" )
	public Long id;
	
	/**
	 * 用户id
	 */
	public Long userId;
	
	/**
	 * 交易类型
	 */
	public Integer  type;
	
	/**
	 * 出入账, 入账为'+'， 出账为'-'
	 */
	public String flowType;
	
	/**
	 * 流水号
	 */
	public String mchnt_txn_ssn;
	
	/**
	 * 金额
	 */
	public BigDecimal amt;
	
	
	/**
	 * 订单id
	 */
	public Long orderId;
	
	
	
	/**
	 * 描述
	 */
	public String tradeDesc;

	//1:华彩通，2：理财师
	private Integer channel;

	/**
	 * 交易时间
	 */
	public Long cts;


	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getMchnt_txn_ssn() {
		return mchnt_txn_ssn;
	}

	public void setMchnt_txn_ssn(String mchnt_txn_ssn) {
		this.mchnt_txn_ssn = mchnt_txn_ssn;
	}

	public BigDecimal getAmt() {
		return amt;
	}

	public void setAmt(BigDecimal amt) {
		this.amt = amt;
	}

	public Long getCts() {
		return cts;
	}

	public void setCts(Long cts) {
		this.cts = cts;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFlowType() {
		return flowType;
	}

	public void setFlowType(String flowType) {
		this.flowType = flowType;
	}
	public String getTradeDesc() {
		return tradeDesc;
	}

	public void setTradeDesc(String tradeDesc) {
		this.tradeDesc = tradeDesc;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	
	
}
